home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / diskedit.arc / VIDEO.H < prev   
Encoding:
C/C++ Source or Header  |  1991-09-06  |  1.0 KB  |  43 lines

  1. /* video.h - constants and prototypes for video output routines in VIDEO.C */
  2. /* lrs 2/13/89 */
  3.  
  4. #define BLACK 0
  5. #define BLUE 1
  6. #define GREEN 2
  7. #define CYAN 3
  8. #define RED 4
  9. #define MAGENTA 5
  10. #define BROWN 6
  11. #define LIGHTGRAY 7
  12. #define DARKGRAY 8
  13. #define LIGHTBLUE 9
  14. #define LIGHTGREEN 10
  15. #define LIGHTCYAN 11
  16. #define LIGHTRED 12
  17. #define LIGHTMAGENTA 13
  18. #define YELLOW 14
  19. #define WHITE 15
  20. #define BLINK 128 /* add to backcolor */
  21. #define REVERSE BLACK,LIGHTGRAY
  22. #define NORMAL  WHITE,BLACK
  23. #define DIM    LIGHTGRAY,BLACK
  24.  
  25. #include <stdarg.h>
  26.  
  27. #define cursoroff() cursorsize(0x20,0)
  28. #define cursoron()  cursorsize(0,14)
  29.  
  30. int screenrows(void);
  31. int screencols(void);
  32.  
  33. void scroll(int lines, int x1, int y1, int x2, int y2);
  34. void cursorsize(int startline, int endline);
  35. void clearscreen(void);
  36. void cleareol(void);
  37. void at(int row, int col);
  38. void in(char forecolor, char backcolor);
  39. void cprintf(va_list arg_list, ...);
  40. void cputc(char ch);
  41. void Write16Bytes (void* buf);
  42. void initvideo(void);
  43. /*---- end of video.h ----*/